import React from 'react'
import ReactDOM from 'react-dom/client'

import App from './App'

import "./init"
import {persistor, store} from "./store"

import "./index.scss"
import {BrowserRouter} from "react-router-dom";
import {Provider} from "react-redux";

import {PersistGate} from "redux-persist/integration/react";


ReactDOM.createRoot(document.getElementById('root')).render(
    <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
            <BrowserRouter>
                <App/>
            </BrowserRouter>
        </PersistGate>
    </Provider>
)
